/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                  *
*        *************************************************         *
*        *©2021-2031 HT  Corporation All rights reserved *         *
*        *************************************************         *
*                                                                  *
* FileName    : demo_rtsp.h                                        *
*                                                                  *
* Author      : linus                                              *
*                                                                  *
* Email       : luoyaojun@haitutech.com                            *
*                                                                  *
* Date        : 2023-1-28                                          *
*                                                                  *
* Description :                                                    *
*                                                                  *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


#ifndef __HT_DEMO_RTSP_H
#define __HT_DEMO_RTSP_H
#ifdef __cplusplus
extern "C"
{
#endif

#include "RtspCaster.h"
#include "ht_type.h"

#define RTSP_MAX_CHN_NUM	8

struct rtsp_config;

struct rtsp_config *rtsp_service_init_h264(HT_U32 port, HT_U32 width, HT_U32 height, HT_U32 framerate);
struct rtsp_config * rtsp_service_init_h265(HT_U32 port, HT_U32 width, HT_U32 height, HT_U32 framerate);
HT_S32 rtsp_service_request_chn(struct rtsp_config *pconfig, HT_U32 chn);
HT_S32 rtsp_service_write_ch(struct rtsp_config *pconfig, HT_U32 chn, HT_U8* data, HT_S32 len, HT_U64 pts);
#ifdef __cplusplus
}
#endif

#endif
